<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Video extends Model
{
    use HasFactory;
    public function experts(){
        return $this->belongsToMany(
            Expert::class,
            'middle_tables',
            'video_id',
            'expert_id');
    }
    protected $fillable=['title','type','begin','end','url','thumb','description'];
    use SoftDeletes;
}
